package cn.nacos.model.system.shiro;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.crazycake.shiro.AuthCachePrincipal;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
/**
 * @Author:ZhouYang
 * @Description:
 * @Date: Created in 2020/8/28 17:37
 * @Modified By：
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ProfileResult implements Serializable, AuthCachePrincipal {
    private String userId;
    private String mobile;
    private String username;
    private String company;
    private String companyId;
    private Map<String,Object> roles = new HashMap<>();


    @Override
    public String getAuthCacheKey() {
        return null;
    }
}
